﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using NDF.DataAccess.EntityFramework;
using NDF.Test.DataAccess.MySqlEFTest;
using System;
using System.Data;
using System.Data.Common;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;

namespace NDF.Test.DataAccess
{
    [TestClass]
    public class MySqlContextTest
    {
        [TestMethod]
        public void TestMethod1()
        {
            using (var db = new NDF.Test.DataAccess.MySqlEFTest.MySqlContextTest())
            {
                var query = from p in db.HelpTopics select p;
                foreach (var item in query)
                {
                    Console.WriteLine(item.name);
                }
            }
        }
    }
}
